<template>
  <view>
    <view class="mask" v-if="isShow" :style="{ zIndex: zIndex }"></view>
  </view>
</template>

<script>
  export default {
    name: "popMask",
    props: {
      isShow: {
        default: false,
        type: Boolean
      },
      zIndex: {
        default: 99999,
        type: [Number, String] // 可以接收数字或字符串
      }
    }
  }
</script>

<style lang="scss" scoped>
  .mask {
    position: absolute;
    background: rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
</style>
